package research.domain;

import java.sql.Blob;
import java.util.Set;

import research.entity.Entity;
import research.entity.EntityType;

public final class Stabilizer extends Entity {
	private String name;
	private Blob photo;
	private String description;
	private Set<SampleStabilizer> sampleStabilizers;
	private Research research;

	public Research getResearch() {
		return research;
	}

	public void setResearch(Research research) {
		this.research = research;
	}

	public Stabilizer() {
		super(EntityType.Stabilizer);
	}

	@Override
	public String getDisplayName() {
		return this.getName();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Blob getPhoto() {
		return photo;
	}

	public void setPhoto(Blob photo) {
		this.photo = photo;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Set<SampleStabilizer> getSampleStabilizers() {
		return sampleStabilizers;
	}

	public void setSampleStabilizers(Set<SampleStabilizer> sample_stabilizers) {
		this.sampleStabilizers = sample_stabilizers;
	}

	public static Stabilizer getNew() {
		Stabilizer stab = new Stabilizer();
		stab.setName("");
		stab.setDescription("");
		stab.setPhoto(null);
		return stab;
	}
}
